﻿using System.ComponentModel.DataAnnotations;

namespace TaskManager.Web.ViewModels.Task
{
    /// <summary>
    /// Create Task Model
    /// </summary>
    public class TaskCreateModel
    {
        /// <summary>
        /// Summary
        /// </summary>
        [Required]
        [StringLength(100)]
        public string Summary { get; set; }

        /// <summary>
        /// Task description
        /// </summary>
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }

        /// <summary>
        /// Assignee
        /// </summary>
        [Required]
        public int AssigneeId { get; set; }

        /// <summary>
        /// Priority (0..4)
        /// </summary>
        [Required]
        [RegularExpression("[0-4]")]
        public int Priority { get; set; }

        /// <summary>
        /// Project
        /// </summary>
        public int ProjectId { get; set; }
    }
}